package Bean;
public class node {
	public int data;
	public node next;

	public node() {
		data = 0;
		next = null;
	}

	public node(int d, node n) {
		data = d;
		next = n;
	}

	public void setData(int d) {
		data = d;
	}

	public void setNext(node n) {
		next = n;
	}

	node getNext() {
		return next;
	}

	int getData() {
		return data;
	}
}
